
Page({
  data: {
  },
  onLoad(options) {
    wx.showLoading({
      title: '生成图片中',
      mask: true
    })
    let webUrl = `https://static.rbanma.com/liuhu/qkmingdaoapp/diag-result.html?username=${options.username}&gender=${options.gender}&birthdate=${options.birthdate}&reportDate=${options.reportDate}${options.reportContent.replaceAll("#+#","&").replaceAll("#-#","=")}&random=${Math.floor(Math.random() * 10000).toString().padStart(4, '0')}`
    console.log(webUrl)
    this.setData({
      webUrl: webUrl
    })
  },
  bindload() {
    setTimeout(()=>{    
      wx.hideLoading()
    },200)
  },
  bindmessage(e) {
    console.log(e.detail)
  }
})